package com.hx.learn.mybatis.model;

import java.util.List;

/**
 * @author jxlgcmh
 * @date 2020-05-16 00:38
 * @description  老师
 */
public class Teacher {
    /**
     * 老师编号
     */
    private Integer tid;

    /**
     * 老师称呼
     */

    private String tname;

    /**
     * 老师教多个年级
     */
    private List<Grade> grades;

    public Teacher() {
    }

    public Teacher(Integer tid, String tname, List<Grade> grades) {
        this.tid = tid;
        this.tname = tname;
        this.grades = grades;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public List<Grade> getGrades() {
        return grades;
    }

    public void setGrades(List<Grade> grades) {
        this.grades = grades;
    }
}
